package com.yanu.t2s.service.Impl;

import com.yanu.t2s.entity.Lingshou;
import com.yanu.t2s.mapper.LingshouMapper;
import com.yanu.t2s.service.LingshouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class LingshouServiceImpl implements LingshouService {
    @Autowired
    LingshouMapper lingshouMapper;
    @Override
    public Lingshou findByIdLingshou(int id_lingshou) {
        return lingshouMapper.findByIdLingshou(id_lingshou);
    }

    @Override
    public List<Lingshou> findAllLingshou() {
        return lingshouMapper.findAllLingshou();
    }
}
